﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entity;
using Business.IManager;
using DataAccess.IService;
using DataAccess.Service;

namespace Business.Manager
{
    public class PaymentItemManager:IPaymentItemManager
    {
        IPaymentItemService paymentItemService = new PaymentItemService();
        IAccountService studentService = new AccountService();
        public DataSet getStudentDetailItems(List<int> projectId, string studentId, DataSet ds)
        {
            return paymentItemService.selectStudentItemDS(projectId,studentId);
        }
        public void geneStudentPaymentDetail(PaymentProject project, List<String> stuProjectIds)
        {

            paymentItemService.insertStudentPaymentItem(project, stuProjectIds);
        }
      
        public void generateProjectDetail(List<PaymentProjectDetail> list)
        {
            paymentItemService.insertPaymentProjectDetail(list);
        }
        public int getMaxProjectDetailId()
        {
            return paymentItemService.selectMaxProjectDetailId();
        }
        public DataSet getStudentDetailItem(int projectId,String stuId)
        {
            return paymentItemService.selectStudentItemDs(projectId,stuId);
        }

        public DataSet getStudentUnPaidDetailItems(String stuId)
        {
            return paymentItemService.getStudentUnPaidDetailItems(stuId);
        }

        public int getStudentProjectIdByDetailId(int detailId,string stuId)
        {
            return paymentItemService.getStudentProjectIdByDetailId(detailId,stuId);
        }

        public DataSet getStudentProjectDetailInfoByDetailId(int detailId)
        {
            return paymentItemService.getStudentProjectDetailInfoByDetailId(detailId);
        }
       
    }
}
